package com.eig.order.controller;

import com.eig.common.entity.homepageentity.prefecture.EduCourse;
import com.eig.common.vo.Result;
import com.eig.order.service.TOrderCourseService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ：liu666
 * @date ：
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/order/course")
public class TOrderCourseController {
    @Resource
    TOrderCourseService tOrderCourseService;

    @PostMapping("/queryAllCourse/{id}")
    public Result<List<EduCourse>> queryOrderAndPayLog(@PathVariable(required = true)String id){
        return new Result<List<EduCourse>>(2000,"查询成功",tOrderCourseService.getByIdCourse(id));
    }
}
